package main

import (
    nset "github.com/toolkits/container/set"
    "fmt"
)


func MergeDuplicateStringArray(slice []string, elems []string) []string{

    listPId := append(slice, elems...)
    t := nset.NewStringSet()
    for _, i := range listPId {
        t.Add(i)
    }
    var result []string
    for _,i := range t.ToSlice(){
        result = append(result, i)
    }
    return result
}

func main(){

    name1 := []string{"a", "b", "c", "b", "d"}
    name2 := []string{"e", "b"}
    fmt.Println(MergeDuplicateStringArray(name1, name2))
}
